package com.sure.minion.web.controller.user;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.sure.minion.services.base.vo.GenericResponse;
import com.sure.minion.web.interceptor.Authorization;
import com.sure.minion.web.interceptor.UserRole;

/**
 * 用户信息相关Controller
 * @author why
 * @date 2015-04-12
 */
@RestController
@RequestMapping("/user")
public class UserController {
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	
	/**查询所有员工信息 */
	@Authorization(UserRole.ANONYMOUS)
	@RequestMapping(value = "/queryAllEmps.json")
	@ResponseBody
	public GenericResponse<String> queryAllEmps(HttpSession session){
		GenericResponse<String> resp =new GenericResponse<String>();
		resp.setResponseObject("I am sure");
		logger.info("请求成功");
		return resp;
	}

}
